package cn.wolfcode.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
//11
@SpringBootApplication
@EnableFeignClients //开启feign客户端
@EnableCircuitBreaker //开启断路器
@EnableHystrixDashboard //开启Hystrix 监控仪表盘
public class OrderServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(OrderServerApplication.class, args);
	}

	/*@Bean
	@LoadBalanced
	public RestTemplate restTemplate(){
		return new RestTemplate();
	}*/

}
